package com.duniptech.soa.service;

import java.util.ArrayList;

import com.duniptech.soa.util.Util;

public class Upload implements UploadServiceInterface {
	
	public String upload(String serverPackage, byte[] arrayOfFileContents, byte[] arrayOfFileNames) throws Exception {
		StringBuffer console = new StringBuffer();
		ArrayList<byte[]> fileContents = (ArrayList<byte[]>)Util.fromByteArray(arrayOfFileContents);
		ArrayList<String> fileNames = (ArrayList<String>)Util.fromByteArray(arrayOfFileNames);
		Util.save(serverPackage, fileContents, fileNames);
		return console.toString();
	}
	
}
